@ECHO ON
CHCP 65001
::字符串%VarA%
::变量%%VarB
SET  bath_path="D:\new_space\gitee\oa_system\"
ECHO %bath_path%

SET  target_path="target\"
ECHO %target_path%

SET  log_file="oasys.log"
ECHO %log_file%

SET  jar_file="oasys.jar"
ECHO %jar_file%

::由于赋值问题，建议加引号。
::等于号二侧不得有空，等于号不得写做符号
SET P0="%bath_path%%log_file%"
ECHO %P0%

SET P1="%bath_path%%jar_file%"
ECHO %P1%

SET P2="%bath_path%%target_path%%jar_file%"
ECHO %P2%

cmd /k "cd /d %bath_path%&&git pull&&cd /d %bath_path%&&mvn clean compile&&mvn install&&mvn package&&copy %P2%  %P1%  /y"